package File.work;

import java.io.File;
import java.util.Scanner;

public class test04 {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        System.out.println("请输入你要删除的目录");
        String str = s.nextLine();
        File file=new File("./"+str);
        if (file.exists()){
            file.delete();
        }else{
            System.out.println("不存在或已删除");
        }
    }
}
